package com.oktest.measure.media.image.adapter

import com.chad.library.adapter.base.binder.QuickItemBinder
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.oktest.measure.R
import kotlinx.android.synthetic.main.item_image.view.*

/**
 * @Author hhh
 * @Date 2020/10/25
 */
class PhotoBinder:QuickItemBinder<ImageItem>() {
    override fun getLayoutId() = R.layout.item_image

    override fun convert(holder: BaseViewHolder, data: ImageItem) {
        holder.itemView.ivBitmap.setImageBitmap(data.bitmap)
    }

}